Current Location: Home> Function Categories> cosh

cosh

Hyperbolic cosine
Name:cosh
Category:math
Programming Language:php
One-line Description:Hyperbolic cosine.

Definition and usage

cosh() function returns the hyperbolic cosine of a number.

Example

In this example, we will return hyperbolic cosines of different numbers:

 <?php
echo ( cosh ( 3 ) ;
echo ( cosh ( - 3 ) ;
echo ( cosh ( 0 ) ;
echo ( cosh ( M_PI ) ;
echo ( cosh ( 2 * M_PI ) ) ;
?>

Try it yourself

grammar

 cosh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic cosine value of x , defined as (exp(arg) + exp(-arg))/2 .

Similar Functions
  • Convert decimal to hexadecimal dechex

    dechex

    Convertdecimaltohexa
  • Calculate the index of e exp

    exp

    Calculatetheindexofe
  • Convert hexadecimal to decimal hexdec

    hexdec

    Converthexadecimalto
  • Sine sin

    sin

    Sine
  • Ancient sine asin

    asin

    Ancientsine
  • Convert decimal to binary decbin

    decbin

    Convertdecimaltobina
  • Sow the random number generator seeds srand

    srand

    Sowtherandomnumberge
  • Perform floating point division under IEEE 754 semantics fdiv

    fdiv

    Performfloatingpoint
Popular Articles